<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This file documents the use of the GNU compilers.

Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>Basic PowerPC Built-in Functions Available on ISA 2.06 (Using the GNU Compiler Collection (GCC))</title>

<meta name="description" content="Basic PowerPC Built-in Functions Available on ISA 2.06 (Using the GNU Compiler Collection (GCC))">
<meta name="keywords" content="Basic PowerPC Built-in Functions Available on ISA 2.06 (Using the GNU Compiler Collection (GCC))">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Indices.html" rel="index" title="Indices">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Basic-PowerPC-Built_002din-Functions.html" rel="up" title="Basic PowerPC Built-in Functions">
<link href="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e07.html" rel="next" title="Basic PowerPC Built-in Functions Available on ISA 2.07">
<link href="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e05.html" rel="prev" title="Basic PowerPC Built-in Functions Available on ISA 2.05">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
div.example {margin-left: 3.2em}
kbd.key {font-style: normal}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en_US">
<div class="subsubsection-level-extent" id="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e06">
<div class="nav-panel">
<p>
Next: <a href="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e07.html" accesskey="n" rel="next">Basic PowerPC Built-in Functions Available on ISA 2.07</a>, Previous: <a href="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e05.html" accesskey="p" rel="prev">Basic PowerPC Built-in Functions Available on ISA 2.05</a>, Up: <a href="Basic-PowerPC-Built_002din-Functions.html" accesskey="u" rel="up">Basic PowerPC Built-in Functions</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsubsection" id="Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e06-1"><span>6.60.22.3 Basic PowerPC Built-in Functions Available on ISA 2.06<a class="copiable-link" href="#Basic-PowerPC-Built_002din-Functions-Available-on-ISA-2_002e06-1"> &para;</a></span></h4>

<p>The basic built-in functions described in this section are
available on the PowerPC family of processors starting with ISA 2.05
or later.  Unless specific options are explicitly disabled on the
command line, specifying option <samp class="option">-mcpu=power7</samp> has the effect of
enabling all the same options as for <samp class="option">-mcpu=power6</samp> in
addition to the <samp class="option">-maltivec</samp>, <samp class="option">-mpopcntd</samp>, and
<samp class="option">-mvsx</samp> options.
</p>
<p>The following basic built-in functions require <samp class="option">-mpopcntd</samp>:
</p><div class="example smallexample">
<pre class="example-preformatted">unsigned int __builtin_addg6s (unsigned int, unsigned int);
long long __builtin_bpermd (long long, long long);
unsigned int __builtin_cbcdtd (unsigned int);
unsigned int __builtin_cdtbcd (unsigned int);
long long __builtin_divde (long long, long long);
unsigned long long __builtin_divdeu (unsigned long long, unsigned long long);
int __builtin_divwe (int, int);
unsigned int __builtin_divweu (unsigned int, unsigned int);
vector __int128 __builtin_pack_vector_int128 (long long, long long);
void __builtin_rs6000_speculation_barrier (void);
long long __builtin_unpack_vector_int128 (vector __int128, signed char);
</pre></div>

<p>Of these, the <code class="code">__builtin_divde</code> and <code class="code">__builtin_divdeu</code> functions
require a 64-bit environment.
</p>
<p>The following basic built-in functions, which are also supported on
x86 targets, require <samp class="option">-mfloat128</samp>.
</p><div class="example smallexample">
<pre class="example-preformatted">__float128 __builtin_fabsq (__float128);
__float128 __builtin_copysignq (__float128, __float128);
__float128 __builtin_infq (void);
__float128 __builtin_huge_valq (void);
__float128 __builtin_nanq (void);
__float128 __builtin_nansq (void);

__float128 __builtin_sqrtf128 (__float128);
__float128 __builtin_fmaf128 (__float128, __float128, __float128);
</pre></div>

</div>



</body>
</html>
